html{
    font-family: var(--ff-wryh);
    font-size: 10px;
    /* 让滚动条更顺滑 */
    scroll-behavior: smooth;
}
body{
    background-color: var(--white);
    font-size: 1.6rem;
    line-height: 1.6;
}
/* 控制按钮动画 */
.btn{
    padding: 13px 25px;
    background-color: var(--marigold); 
    color: var(--white);
    border-radius: var(--radius-10);
    border: 2px solid var(--marigold);
    position: relative;
    overflow: hidden;
  }

  
  .btn::after{
    content: '';
    width: 150%;
    height: 300%;
    display: block;
    background-color:var(--white);
    transform: translateY(-150px) skewY(20deg);
    transition: var(--transition-2);
    position: absolute;
    left: 0px;
    top:-20px;
    z-index: 9;
  }
 
.btn::before{
  position: absolute;
  left: 0px;
  top: 13px;
  text-align: center;
  content: '现在订购';
  width: 100%;
  height: 100%;
  z-index: 10;
  display: none;
}
.btn:hover::after{
  transform: skewY(20deg) translateY(0);
}

.btn:hover::before{
  display: block;
  color:var(--marigold);
}
/* 懒加载动画 */
[data-reveal]{
  transform: translateY(20px);
  opacity: 0;
  transition: var(--transition-2);
}

[data-reveal="left"]{
  transform: translateX(-20px);
}
[data-reveal="right"]{
  transform: translateX(20px);
}
.revealed{
  opacity: 1;
  transform: translate(0px,0px);
}




  .header{
    width: 100%;
  }
/* header-container的样式 */
.header .container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-block: 20px;
}
/* 头部 nav-bar 的设置 */
.header .container .nav-bar{
    display: flex;
    width: 409px;
    height: 50px;
    justify-content: space-between;
    align-items: center;
}
/* 设置nav-bar鼠标移入效果 */
.header .container .nav-bar a:hover{
    color: var(--marigold);
}

/* header-btn设置 */
.header .container .header-btn{
    display: flex;
    align-self: center;
    gap: 15px;
    margin-left: 280px;
}
/* header-btn 设置*/
.header .container .header-btn .cart-btn{
    padding: 12px  17px;
    border-radius:var(--radius-10) ;
    background-color:var(--light-gray) ;
    color: var(--marigold);
}
/* 不加空格说明当前空格同时有header和active */
.header.active{
  position: fixed;
  animation: slide 0.5s ;
  background-color: white;
  z-index: 20;
  box-shadow: var(--shadow-1);
}

@keyframes slide {
    0%{
      transform: translateY(-100%);
    }
    100%{
      transform: translateY(0);
    }
}


  /* 主体设置 */
  .section1{
    background-image: url(../images/hero-bg.png);
    background-position:center ;
    background-size: cover;
  }
  .section1 .content{
    display: flex;
    padding-top: 100px;
    justify-content: space-between;
    gap: 30px;
  }
  .section1 .content .container{
    padding-top: 10%;
    width: 50%;
  }
  .section1 .content .container h1{
    font-size: var(--fs-1);
  }

  .section1 .content .container p{
   color: var( --sonic-silver);
   margin: 8px 0  40px 0;
  }
 
  .section1 .content .section1-banner .pos1{
    bottom: 30px;
  }
  .section1 .content .section1-banner .pos2{
    right: -40px;
    top: 80px;
  }

/* section2设置 */
.section2 .content{
  display: flex;
  margin-top: var();
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}
.section2 .content h1{
  margin: 20px;
  font-size: var(--fs-2);
}
.section2 .content p{
  color: var(--sonic-silver);
}
.section2 .content ul{
  display: flex;
  justify-content: space-between;
}
.section2 .content ul h2{
  color: var(--marigold);
}
/* section部分的按钮总设置 */
.two-btn{
  display: flex;
  gap: 10px;
}
 .two-btn button{
  padding: 8px  12px;
  border-radius: 10px;
  border: 1px orange solid;
  color: var(--marigold);
}
.section3  .lastBtton{
  margin-top: 50px;
  color: var(--white);
  background-color: var(--marigold);
  padding: 8px  12px;
  border-radius: 10px;
  transform: translateX(650px);
}

/* section3设置 */
.section3 .content{
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 100px;
}

.section3 .content .text-area h1{
    font-size: var(--fs-2);
    margin-top: 30px;
}
.section3 .content .text-area p{
  color:var(--sonic-silver);
}


.section3 .content .rest-1 h3{
  margin-top: 10px;
}
.section3 .content .rest-1 .star-lists{
  display: flex;
  margin: 7px 0;
}



.section3 .content .rest-2 h3{
  margin-top: 10px;
}
.section3 .content .rest-2 .star-lists{
  display: flex;
  margin: 7px 0;
}

.section3 .content .rest-3 h3{
  margin-top: 10px;
}
.section3 .content .rest-3 .star-lists{
  display: flex;
  margin: 7px 0;
}
.section4{
  background-image: url(../images/hero-bg.png);
  background-position: center;
  background-size: cover;
}
.section4 .content{
  display: flex;
  margin-top: 100px;
}

.section4 .content div{
  transform: translateY(350px);
  margin-left: 50px;
}
.section4 .content div p{
  color: var(--sonic-silver);
  margin-block: 15px;
}
/* section5   这里的背景渐变色不会 */
.section5 .content{
  display: flex;
  padding-top: 100px;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.section5 .content .title{
  font-size: var(--fs-5);
}
.section5 .content .item-area{
  display: flex;
  box-shadow: var(--shadow-1);
  border-radius: 10px;
  border: 2px whitesmoke solid;
  padding: 30px;
}
.section5 .content .item-area h3{
  color: var(--marigold);
  font-size: var(--fs-5);
  padding-right: 15px;
}
.section5 .content .item-area span{
  color: var(--sonic-silver);
  transform: translateY(15px);
}

/* section6 */
.section6 {
  padding-block: var(--section-padding);
}
.section6 .content {
  display: flex;
  gap: 40px;
}
.section6 .content .text-area {
  flex: 1;
  padding-top: var(--section-padding);
}
.section6 .content .text-area h2 {
  font-size: var(--fs-6);
  margin-bottom: 20px;
}
.section6 .content .text-area p {
  color: var(--sonic-silver);
  margin-bottom: 20px;
}
.section6 .content .text-area .comments {
  display: flex;
  align-items: center;
  gap: 20px;
}
.section6 .content .img {
  flex: 1;
}

/* section7 */
.section7 {
  background-color: var(--jet);
  padding-block: var(--section-padding);
}
.section7 .content h1 {
  text-align: center;
  color: var(--white);
  font-size: var(--fs-2);
  padding-bottom: 40px;
  letter-spacing: 4px;
}
.section7 .content .container {
  display: flex;
  align-items: center;
  gap: 50px;
  justify-content: space-between;
}
.section7 .content .container .item img {
  border-radius: var(--radius-15);
  border: 6px solid var(--marigold);
}
.section7 .content .container .info {
  left: 40px;
  bottom: -20px;
}
.section7 .content .container .info h3 {
  color: var(--white);
  font-size: var(--fs-8);
  margin-bottom: 10px;
  padding-left: 20px;
}
.section7 .content .container .info button {
  padding: 20px 40px;
  color: var(--white);
  font-size: var(--fs-10);
  background-color: var(--marigold);
  border-radius: var(--radius-10);
  cursor: pointer;
  transition: all 0.5s;
}
.section7 .content .container .info button:hover {
  color: var(--marigold);
  background-color: var(--white);
}

/* section8 */
.section8 {
  padding-block: var(--section-padding);
}
.section8 .content {
  display: flex;
  gap: 40px;
}
.section8 .content .img {
  flex: 1;
}
.section8 .content .text-area {
  flex: 1;
  padding-top: 60px;
}
.section8 .content .text-area .text {
  background-color: var(--white);
  border-radius: var(--radius-10);
  padding: 10px;
  margin-bottom: 10px;
}
.section8 .content .text-area .text h2 {
  font-size: var(--fs-4);
  margin-bottom: 30px;
}
.section8 .content .text-area .text input {
  box-shadow: var(--shadow-2);
  width: 100%;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-10);
  outline-color: var(--marigold);
}
.section8 .content .text-area button {
  padding: 15px 40px;
  background-color: var(--marigold);
  color: var(--white);
  border-radius: var(--radius-10);
  cursor: pointer;
}

/* footer */
footer {
  padding-top: var(--section-padding);
  background-color: var(--jet);
}
footer .content {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--davys-gray);
  padding-bottom: 40px;
}
footer .content .footer1 {
  flex: 3;
}
footer .content .footer1 h2 {
  color: var(--white);
  font-size: var(--fs-4);
  margin-block: 20px;
}
footer .content .footer1 p {
  color: var(--sonic-silver);
  color: var(--light-gray);
  width: 80%;
}
footer .content .footer2 {
  flex: 2;
}
footer .content .footer2 h4 {
  color: var(--davys-gray);
  font-size: var(--fs-8);
  margin-bottom: 20px;
}
footer .content .footer2 a {
  color: var(--light-gray);
  margin-bottom: 20px;
}
footer .content .footer3 {
  flex: 3;
}
footer .content .footer3 h4 {
  color: var(--davys-gray);
  font-size: var(--fs-8);
  margin-bottom: 20px;
}
footer .content .footer3 p {
  color: var(--light-gray);
  margin-bottom: 20px;
}
footer .content .footer3 .p1 {
  border-bottom: 1px solid var(--davys-gray);
  padding-bottom: 10px;
}
footer .content .footer3 p i {
  margin-right: 10px;
}
footer .copyright {
  text-align: center;
  padding-block: 20px;
  color: var(--davys-gray);
}
